package com.btex.app;

import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.bumptech.glide.Glide;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class OTCFullImgActivity extends AppCompatActivity {

    @BindView(R.id.otc_full_imag)
    ImageView mOtcFullImag;
    @BindView(R.id.otc_full_lin)
    LinearLayout mOtcFullLin;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_otcfull_img);
        ButterKnife.bind(this);

        Log.i("lkwqdmlqwdoiqj", "111111");
        String data = getIntent().getExtras().getString("data");

        Glide.with(this).load(Config.GETIMG + data).into(mOtcFullImag);
    }

    @OnClick({R.id.otc_full_imag, R.id.otc_full_lin})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.otc_full_imag:
                ActivityCompat.finishAfterTransition(this);
                break;
            case R.id.otc_full_lin:
                ActivityCompat.finishAfterTransition(this);
                break;
        }
    }

}
